linux: Use hard tabs and Linux coding style.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 21 Feb 2007 20:03:56 +0000 (20:03 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 21 Feb 2007 20:03:56 +0000 (20:03 +0000)
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c
linux-2.6-xen-sparse/drivers/xen/blkback/common.h
linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c

index c0cd61407009dfba1b4c2e7acc33f2090391c0e2..edd26a3b180655b10dbbac701e955d942c249a4c 100644 (file)
@@ -491,11 +491,10 @@ static void dispatch_rw_block_io(blkif_t *blkif,
        for (i = 0; i < nbio; i++)
                submit_bio(operation, biolist[i]);
 
-        if (operation == READ) {
-                blkif->st_rd_sect += preq.nr_sects;
-        } else if (operation == WRITE) {
-                blkif->st_wr_sect += preq.nr_sects;
-        }
+       if (operation == READ)
+               blkif->st_rd_sect += preq.nr_sects;
+       else if (operation == WRITE)
+               blkif->st_wr_sect += preq.nr_sects;
 
        return;
 
index 30f938956d8947e98985c7e0190affd99122dd4e..9341f6ea36c1509cf8a56034b456193800096256 100644 (file)
@@ -88,8 +88,8 @@ typedef struct blkif_st {
        int                 st_wr_req;
        int                 st_oo_req;
        int                 st_br_req;
-        int                 st_rd_sect;
-        int                 st_wr_sect;
+       int                 st_rd_sect;
+       int                 st_wr_sect;
 
        wait_queue_head_t waiting_to_free;
 
index 3aaa1f561f71cadc309a251f654a7dd4425b7c67..20b533a3ac338fa85aa12e8ddf8702b5311ec053 100644 (file)
@@ -1407,11 +1407,10 @@ static void dispatch_rw_block_io(blkif_t *blkif,
        wmb(); /* blktap_poll() reads req_prod_pvt asynchronously */
        info->ufe_ring.req_prod_pvt++;
 
-       if (operation == READ) {
+       if (operation == READ)
                blkif->st_rd_sect += nr_sects;
-       } else if (operation == WRITE) {
+       else if (operation == WRITE)
                blkif->st_wr_sect += nr_sects;
-       }
 
        return;